<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <base url="<?php echo $this->serverUrl() . $this->baseUrl(); ?>" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>CEV</title>

        <!-- CSS -->
        <link rel="stylesheet" href="<?php echo $this->baseUrl(); ?>/themes/default/css/style.css" media="screen" />
        <link rel="stylesheet" href="<?php echo $this->baseUrl(); ?>/themes/default/css/jquery-ui-1.8.15.custom.css" media="screen" />

        <!-- JS -->
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/jquery-ui-1.8.11.custom.min.js"></script>

        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/jquery.form.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/jquery.maskedinput-1.2.2.min.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/jquery.price_format.1.3.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/validate/jquery.validate.pack.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/validate/messages_ptbr.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/jquery.ui.datepicker-pt-BR.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/jquery/tooltip/jquery.tools.min.js"></script>

        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/js/init.js"></script>
        <script type="text/javascript">
        var baseUrlTheme = "<?php echo $this->baseUrl(); ?>/themes/default/";

        $(function(){
            // Accordion
            $("#accordion").accordion({ header: "h3" });

            //hover states on the static widgets
            $('.ui-state-default').hover(
                function() { $(this).addClass('ui-state-hover'); },
                function() { $(this).removeClass('ui-state-hover'); }
            );
        });
        </script>
        <?php echo $this->headScript();?>
    </head>
    <body>
        <!-- bara menu topo -->
        <div class="menu-topo-tudo">
            <!-- centraliza menu topo -->
            <div class="menu-topo">
                <ul>
                    <li><a href="<?php echo $this->baseUrl(); ?>/corporativo/suporte/melhoria">Sugerir Melhorias</a></li>
                    <li>
                        <?php if (Zend_Auth::getInstance()->hasIdentity()) {
                            echo Zend_Auth::getInstance()->getIdentity()->st_email;
                            echo ' | <a href="' . $this->baseUrl() . '/corporativo/seguranca/logout">Sair</a>';
                            }
                        ?>
                    </li>
                </ul>
            </div>
        </div>

        <div id="tudo">
            <div id="topo">
                <div id="logo">
                    <h1>CEV</h1>
                </div>

                <?php if (Zend_Auth::getInstance()->hasIdentity()) : ?>
                <?php endif; ?>

                <div id="menu-principal">
                    <?php echo $this->navigation()->menu()->renderMenu(null, array('maxDepth' => 0, 'ulClass' => 'navigation')); ?>
                </div>
            </div><!-- fim da div topo -->

            <div id="content">
            <?php
                $messages     = (array) $this->messages;
                $sDisplayInfo = count($messages) ? 'display:block' : 'display:none';
            ?>

            <div id="divMensagem">
                <div class="ui-state-error ui-corner-all" id="error" style="<?php echo $sDisplayInfo; ?>">
                    <?php foreach ($messages as $mensage) {
                        echo "<p><span class='ui-icon ui-icon-alert'></span>{$mensage}</p>";
                    } ?>
                </div>
            </div>

                <!-- conteúdo -->
                <?php echo $this->layout()->content; ?>

            </div><!-- fim de content -->

            <div id="rodape">
                <address>Copyright&copy; 2011 - Todos os direitos reservados</address>
            </div>
        <div id="ev-div-dialog-modal" style="display: none;"></div>
        <div id="ev-div-dialog-form" style="display: none;"></div>
        </div><!-- fim de tudo -->
    </body>
</html>
